const express = require( 'express' );
const router = express.Router();
const experience = require( "../../../controllers/experience.controller" );
/**
 * 查询简介信息列表
 * @route POST /api/private/experience/list
 * @group 资历管理 - list of experience
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of experience info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/list", experience.list );


/**
 * 创建简介信息
 * @route POST /api/private/experience/create
 * @group 资历管理 - Operations about experience
 * @returns {object} 200 - An array of experience info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/create", experience.create );



/**
 * 修改简介信息
 * @route POST /api/private/experience/update
 * @group 资历管理 - Operations about experience
 * @returns {object} 200 - An array of experience info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/update", experience.update );


/**
 * 删除简介信息
 * @route POST /api/private/experience/delete
 * @group 资历管理 - Operations about experience
 * @returns {object} 200 - An array of experience info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/delete", experience.delete );
module.exports = router;